package com.woniu.pojo.dto;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.validation.constraints.NotBlank;

@Data
@ApiModel(value = "User对象", description = "用户表")
public class UserDto {

    @ApiModelProperty("用户手机号")
    @NotBlank(message = "手机号不能为空")
    private String tel;

    @ApiModelProperty("密码")
    @NotBlank(message = "密码不能为空")
    private String password;

    @ApiModelProperty("用户的类型")
    private Integer type;
}
